#include "controller.h"
#include <QDebug>
#include <QElapsedTimer>


Controller::Controller(QObject *parent) : QObject(parent)
{
    quit = false;
}


void Controller::doWork()
{
    QElapsedTimer timer;
    timer.start();
   while(!quit){
       if(timer.elapsed() >100){
         qDebug() << "dowork";
            emit resultReady();
       }
   }
}
void Controller::stop_work()
{
    quit = true;
}
